package pck.ivrGraph.models.flows;

import java.util.HashMap;
import java.util.Set;

abstract public class IvrFlow {
    protected String name = null;
    protected String description = null;

    protected HashMap<String,IvrFlow> nextFlows = new HashMap<String,IvrFlow>();

    public String getName(){
        return name;
    }

    public void setName(String name){
        this.name = name;
    }

    public String getDescription(){
        return description;
    }

    public void setDescription(String description){
        this.description = description;
    }

    public void addFlow(String keyReturn, IvrFlow nextFlow){
        nextFlows.put(keyReturn, nextFlow);
    }

    public IvrFlow getChildFlow(String keyReturn){
        return nextFlows.get(keyReturn);
    }

    public Set getKeys(){
        return nextFlows.keySet();
    }
}
